<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

use App\Entity\Member;
Route::get('/', function () {
    return view('login');
    //查找表Member 中的所有数据，并把他返回出来
//    return Member::all();
});
//指定登陆与注册的路由
Route::get('/login','View\MemberController@toLogin');
Route::get('/register','View\MemberController@toRegister');

//前面是URL后面是所对应路由器的位置（一律用反斜杠）
Route::any('service/validate_code/create','Service\ValidateController@create');
//测试验证码发送是否可行
Route::any('service/validate_code/send','Service\ValidateController@sendSMS');

